<!DOCTYPE html>
<html lang="zh">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <title>骡窝窝景点门票</title>
    <meta name="description"
          content="8684景点门票,提供全国各个景区、景点门票最新的门票价格、门票预订及打折门票,同时还为您准备了丰富的门票团购活动,并提供景区、景点的相关度假旅游线路产品,是您门票查询和门票预定的最佳渠道。"/>

    <link rel="stylesheet" type="text/css" href="public/css/base.min.css"/>
    <script type="text/javascript" src="/js/jquery/jquery.min.js"></script>
</head>

<body>
<header class="a-hd">
    <p class="a-tt">骡窝窝景点门票</p> <a href="javascript:history.back();" class="back">返回</a>
</header>
<div class="a-mn">
    <section>
        <div class="a-srh">
            <div class="a-iptBox">
                <input type="text" class="a-ipt" placeholder="请输入城市名/景点名" id="keyword" value=""/>
            </div>
            <input type="button" class="a-btn" value="" onClick="top_search('2');"/>
        </div>
    </section>
    <section class="a-nearby">
        <BR>
        <div class="a-nearbyMn">
            <a class="a-more" id="more">更多</a>
        </div>

    </section>
</div>
<footer class="a-ft">
    <div class="a-ftNav"><a href="#">意见反馈</a> | <a href="#">关于我们</a> |
        <a href="#"><font color="red">微信:8684</font></a>| <a href="/index.html">首页</a>
    </div>
    <div class="copyRight">©2005-2014 8684.com</div>
</footer>
</body>
<script>
    //发送ajax请求获取所有推荐区域
    $.get("/regions/hots", {state: 1}, function (data) {
        // console.log(data);
        $.each(data, function (index, ele) {
            //每一个迭代出来的对象做成option
            $(" <a></a>").html(ele.name).prop("href", encodeURI("liebiao.html?placeId=" + ele.id+"&placeName="+ele.name))
                .prependTo(".a-nearbyMn");
        });
    });
    
    $("#more").click(function () {
        $(this).remove();
        $.get("/regions/hots", {state: 0}, function (data) {
            $.each(data, function (index, ele) {
                //每一个迭代出来的对象做成option
                $(" <a></a>").html(ele.name).prop("href", "liebiao.html?placeId=" + ele.id)
                    .appendTo(".a-nearbyMn");
            });
        });
    });


</script>
</html>
